package com.xxx.proj.nacosconsumer.controller;

import com.xxx.proj.nacosconsumer.feign.ProviderFeign;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HiController {
    @Resource
    private ProviderFeign feign;

    @RequestMapping("/hi")
    public String hi(){
        return "hi"
                +feign.hello();
    }
}
